<%--
  Created by IntelliJ IDEA.
  User: Think
  Date: 2023/8/3
  Time: 11:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.net.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>login</title>
    <style>
        h2 {
            text-align: center;

        }

        #loginDiv {
            margin: 0px auto;
            width: 400px;
            height: auto;
        }

        table, td {
            width: 280px;
            border-collapse: collapse;
            text-align: center;
        }
    </style>
</head>
<body>
<%
    String msg= "";
    if(request.getParameter("msg")!=null){
        msg = request.getParameter("msg");
        msg = URLDecoder.decode(msg,"UTF-8");
        System.out.println(msg);
    }
%>
<h2>用户登录</h2>
<hr>
<div id="loginDiv">
    <div style="text-align: center;color: red">
        <%=msg%>
    </div>
    <form action="users?action=login" method="post">
        <table>
            <tr>
                <td>用户名:</td>
                <td><input type="text" name="identify" value=""/></td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><input type="password" name="password" value=""/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="登录">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
